/**
 * 处理日期格式
 * @param {*} date 
 * @returns 日期格式:yy-mm-dd
 */
export const getTime = (date) => {
  let y = date.getFullYear()
  let m = date.getMonth() + 1;
  m = m < 10 ? ('0' + m) : m;
  let d = date.getDate();
  d = d < 10 ? ('0' + d) : d;
  let time = y + '-' + m + '-' + d;
  return time
}